//
//  VisionTable.swift
//  App_Common
//
//  Created by Flutter on 2021/7/27.
//

import Foundation
import Standard




public enum VisionTable {}

public extension VisionTable {
    
    static let maxVisionIndex: Int = 12
    
    static let minVisionIndex: Int = 0
    
    static let recommendDefaultDistance: Float = 0.5
    
    static let recommendDefaultVisionIndex: Int = 9
    
    private static let oldVisionList: [Float] = [0.1,0.12,0.15,0.2,0.25,0.3,0.4,0.5,0.6,0.8,1.0,1.2,1.5]
    private static let newVisionList: [Float] = [4.0,4.1,4.2,4.3,4.4,4.5,4.6,4.7,4.8,4.9,5.0,5.1,5.2]
    
    static func getOldVision(index: Int) -> Float? {
        return oldVisionList[safe: index]
    }
    static func getNewVision(index: Int) -> Float? {
        return newVisionList[safe: index]
    }

}

public enum Eye: Int {
    case left = 0
    case right = 1
}


